{"ast":null,"code":"import _defineProperty from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nimport { operationUnit } from '../../style';\nvar genExpandStyle = function genExpandStyle(token) {\n  var _Object$assign, _$concat2;\n  var componentCls = token.componentCls,\n    antCls = token.antCls,\n    checkboxSize = token.controlInteractiveSize,\n    motionDurationSlow = token.motionDurationSlow,\n    lineWidth = token.lineWidth,\n    paddingXS = token.paddingXS,\n    lineType = token.lineType,\n    tableBorderColor = token.tableBorderColor,\n    tableExpandIconBg = token.tableExpandIconBg,\n    tableExpandColumnWidth = token.tableExpandColumnWidth,\n    borderRadius = token.borderRadius,\n    fontSize = token.fontSize,\n    fontSizeSM = token.fontSizeSM,\n    lineHeight = token.lineHeight,\n    tablePaddingVertical = token.tablePaddingVertical,\n    tablePaddingHorizontal = token.tablePaddingHorizontal,\n    tableExpandedRowBg = token.tableExpandedRowBg,\n    paddingXXS = token.paddingXXS;\n  var halfInnerSize = checkboxSize / 2 - lineWidth;\n  // must be odd number, unless it cannot align center\n  var expandIconSize = halfInnerSize * 2 + lineWidth * 3;\n  var tableBorder = \"\".concat(lineWidth, \"px \").concat(lineType, \" \").concat(tableBorderColor);\n  var expandIconLineOffset = paddingXXS - lineWidth;\n  return _defineProperty({}, \"\".concat(componentCls, \"-wrapper\"), (_$concat2 = {}, _defineProperty(_$concat2, \"\".concat(componentCls, \"-expand-icon-col\"), {\n    width: tableExpandColumnWidth\n  }), _defineProperty(_$concat2, \"\".concat(componentCls, \"-row-expand-icon-cell\"), _defineProperty({\n    textAlign: 'center'\n  }, \"\".concat(componentCls, \"-row-expand-icon\"), {\n    display: 'inline-flex',\n    float: 'none',\n    verticalAlign: 'sub'\n  })), _defineProperty(_$concat2, \"\".concat(componentCls, \"-row-indent\"), {\n    height: 1,\n    float: 'left'\n  }), _defineProperty(_$concat2, \"\".concat(componentCls, \"-row-expand-icon\"), Object.assign(Object.assign({}, operationUnit(token)), (_Object$assign = {\n    position: 'relative',\n    float: 'left',\n    boxSizing: 'border-box',\n    width: expandIconSize,\n    height: expandIconSize,\n    padding: 0,\n    color: 'inherit',\n    lineHeight: \"\".concat(expandIconSize, \"px\"),\n    background: tableExpandIconBg,\n    border: tableBorder,\n    borderRadius: borderRadius,\n    transform: \"scale(\".concat(checkboxSize / expandIconSize, \")\"),\n    transition: \"all \".concat(motionDurationSlow),\n    userSelect: 'none'\n  }, _defineProperty(_Object$assign, \"&:focus, &:hover, &:active\", {\n    borderColor: 'currentcolor'\n  }), _defineProperty(_Object$assign, \"&::before, &::after\", {\n    position: 'absolute',\n    background: 'currentcolor',\n    transition: \"transform \".concat(motionDurationSlow, \" ease-out\"),\n    content: '\"\"'\n  }), _defineProperty(_Object$assign, '&::before', {\n    top: halfInnerSize,\n    insetInlineEnd: expandIconLineOffset,\n    insetInlineStart: expandIconLineOffset,\n    height: lineWidth\n  }), _defineProperty(_Object$assign, '&::after', {\n    top: expandIconLineOffset,\n    bottom: expandIconLineOffset,\n    insetInlineStart: halfInnerSize,\n    width: lineWidth,\n    transform: 'rotate(90deg)'\n  }), _defineProperty(_Object$assign, '&-collapsed::before', {\n    transform: 'rotate(-180deg)'\n  }), _defineProperty(_Object$assign, '&-collapsed::after', {\n    transform: 'rotate(0deg)'\n  }), _defineProperty(_Object$assign, '&-spaced', {\n    '&::before, &::after': {\n      display: 'none',\n      content: 'none'\n    },\n    background: 'transparent',\n    border: 0,\n    visibility: 'hidden'\n  }), _Object$assign))), _defineProperty(_$concat2, \"\".concat(componentCls, \"-row-indent + \").concat(componentCls, \"-row-expand-icon\"), {\n    marginTop: (fontSize * lineHeight - lineWidth * 3) / 2 - Math.ceil((fontSizeSM * 1.4 - lineWidth * 3) / 2),\n    marginInlineEnd: paddingXS\n  }), _defineProperty(_$concat2, \"tr\".concat(componentCls, \"-expanded-row\"), _defineProperty({\n    '&, &:hover': {\n      '> td': {\n        background: tableExpandedRowBg\n      }\n    }\n  }, \"\".concat(antCls, \"-descriptions-view\"), {\n    display: 'flex',\n    table: {\n      flex: 'auto',\n      width: 'auto'\n    }\n  })), _defineProperty(_$concat2, \"\".concat(componentCls, \"-expanded-row-fixed\"), {\n    position: 'relative',\n    margin: \"-\".concat(tablePaddingVertical, \"px -\").concat(tablePaddingHorizontal, \"px\"),\n    padding: \"\".concat(tablePaddingVertical, \"px \").concat(tablePaddingHorizontal, \"px\")\n  }), _$concat2));\n};\nexport default genExpandStyle;","map":{"version":3,"names":["operationUnit","genExpandStyle","token","componentCls","antCls","checkboxSize","controlInteractiveSize","motionDurationSlow","lineWidth","paddingXS","lineType","tableBorderColor","tableExpandIconBg","tableExpandColumnWidth","borderRadius","fontSize","fontSizeSM","lineHeight","tablePaddingVertical","tablePaddingHorizontal","tableExpandedRowBg","paddingXXS","halfInnerSize","expandIconSize","tableBorder","expandIconLineOffset","width","textAlign","display","float","verticalAlign","height","Object","assign","position","boxSizing","padding","color","background","border","transform","transition","userSelect","borderColor","content","top","insetInlineEnd","insetInlineStart","bottom","visibility","marginTop","Math","ceil","marginInlineEnd","table","flex","margin"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/antd/es/table/style/expand.js"],"sourcesContent":["import { operationUnit } from '../../style';\nconst genExpandStyle = token => {\n  const {\n    componentCls,\n    antCls,\n    controlInteractiveSize: checkboxSize,\n    motionDurationSlow,\n    lineWidth,\n    paddingXS,\n    lineType,\n    tableBorderColor,\n    tableExpandIconBg,\n    tableExpandColumnWidth,\n    borderRadius,\n    fontSize,\n    fontSizeSM,\n    lineHeight,\n    tablePaddingVertical,\n    tablePaddingHorizontal,\n    tableExpandedRowBg,\n    paddingXXS\n  } = token;\n  const halfInnerSize = checkboxSize / 2 - lineWidth;\n  // must be odd number, unless it cannot align center\n  const expandIconSize = halfInnerSize * 2 + lineWidth * 3;\n  const tableBorder = `${lineWidth}px ${lineType} ${tableBorderColor}`;\n  const expandIconLineOffset = paddingXXS - lineWidth;\n  return {\n    [`${componentCls}-wrapper`]: {\n      [`${componentCls}-expand-icon-col`]: {\n        width: tableExpandColumnWidth\n      },\n      [`${componentCls}-row-expand-icon-cell`]: {\n        textAlign: 'center',\n        [`${componentCls}-row-expand-icon`]: {\n          display: 'inline-flex',\n          float: 'none',\n          verticalAlign: 'sub'\n        }\n      },\n      [`${componentCls}-row-indent`]: {\n        height: 1,\n        float: 'left'\n      },\n      [`${componentCls}-row-expand-icon`]: Object.assign(Object.assign({}, operationUnit(token)), {\n        position: 'relative',\n        float: 'left',\n        boxSizing: 'border-box',\n        width: expandIconSize,\n        height: expandIconSize,\n        padding: 0,\n        color: 'inherit',\n        lineHeight: `${expandIconSize}px`,\n        background: tableExpandIconBg,\n        border: tableBorder,\n        borderRadius,\n        transform: `scale(${checkboxSize / expandIconSize})`,\n        transition: `all ${motionDurationSlow}`,\n        userSelect: 'none',\n        [`&:focus, &:hover, &:active`]: {\n          borderColor: 'currentcolor'\n        },\n        [`&::before, &::after`]: {\n          position: 'absolute',\n          background: 'currentcolor',\n          transition: `transform ${motionDurationSlow} ease-out`,\n          content: '\"\"'\n        },\n        '&::before': {\n          top: halfInnerSize,\n          insetInlineEnd: expandIconLineOffset,\n          insetInlineStart: expandIconLineOffset,\n          height: lineWidth\n        },\n        '&::after': {\n          top: expandIconLineOffset,\n          bottom: expandIconLineOffset,\n          insetInlineStart: halfInnerSize,\n          width: lineWidth,\n          transform: 'rotate(90deg)'\n        },\n        // Motion effect\n        '&-collapsed::before': {\n          transform: 'rotate(-180deg)'\n        },\n        '&-collapsed::after': {\n          transform: 'rotate(0deg)'\n        },\n        '&-spaced': {\n          '&::before, &::after': {\n            display: 'none',\n            content: 'none'\n          },\n          background: 'transparent',\n          border: 0,\n          visibility: 'hidden'\n        }\n      }),\n      [`${componentCls}-row-indent + ${componentCls}-row-expand-icon`]: {\n        marginTop: (fontSize * lineHeight - lineWidth * 3) / 2 - Math.ceil((fontSizeSM * 1.4 - lineWidth * 3) / 2),\n        marginInlineEnd: paddingXS\n      },\n      [`tr${componentCls}-expanded-row`]: {\n        '&, &:hover': {\n          '> td': {\n            background: tableExpandedRowBg\n          }\n        },\n        // https://github.com/ant-design/ant-design/issues/25573\n        [`${antCls}-descriptions-view`]: {\n          display: 'flex',\n          table: {\n            flex: 'auto',\n            width: 'auto'\n          }\n        }\n      },\n      // With fixed\n      [`${componentCls}-expanded-row-fixed`]: {\n        position: 'relative',\n        margin: `-${tablePaddingVertical}px -${tablePaddingHorizontal}px`,\n        padding: `${tablePaddingVertical}px ${tablePaddingHorizontal}px`\n      }\n    }\n  };\n};\nexport default genExpandStyle;"],"mappings":";AAAA,SAASA,aAAa,QAAQ,aAAa;AAC3C,IAAMC,cAAc,GAAG,SAAjBA,cAAc,CAAGC,KAAK,EAAI;EAAA;EAC9B,IACEC,YAAY,GAkBVD,KAAK,CAlBPC,YAAY;IACZC,MAAM,GAiBJF,KAAK,CAjBPE,MAAM;IACkBC,YAAY,GAgBlCH,KAAK,CAhBPI,sBAAsB;IACtBC,kBAAkB,GAehBL,KAAK,CAfPK,kBAAkB;IAClBC,SAAS,GAcPN,KAAK,CAdPM,SAAS;IACTC,SAAS,GAaPP,KAAK,CAbPO,SAAS;IACTC,QAAQ,GAYNR,KAAK,CAZPQ,QAAQ;IACRC,gBAAgB,GAWdT,KAAK,CAXPS,gBAAgB;IAChBC,iBAAiB,GAUfV,KAAK,CAVPU,iBAAiB;IACjBC,sBAAsB,GASpBX,KAAK,CATPW,sBAAsB;IACtBC,YAAY,GAQVZ,KAAK,CARPY,YAAY;IACZC,QAAQ,GAONb,KAAK,CAPPa,QAAQ;IACRC,UAAU,GAMRd,KAAK,CANPc,UAAU;IACVC,UAAU,GAKRf,KAAK,CALPe,UAAU;IACVC,oBAAoB,GAIlBhB,KAAK,CAJPgB,oBAAoB;IACpBC,sBAAsB,GAGpBjB,KAAK,CAHPiB,sBAAsB;IACtBC,kBAAkB,GAEhBlB,KAAK,CAFPkB,kBAAkB;IAClBC,UAAU,GACRnB,KAAK,CADPmB,UAAU;EAEZ,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